from flask import Blueprint, session, render_template
from flask import current_app

api = Blueprint('api', __name__)


@api.route('/')
def index():
    session['itcast'] = 'python14'
    return render_template('index.html')


@api.route('/favicon.ico')
def favicon():
    return current_app.send_static_file('news/favicon.ico')